package com.hqyj.role.mapper;

import com.hqyj.role.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hqyj.role.entity.RolePower;
import com.hqyj.user.pojo.MyNode;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author sdx2009
 * @since 2022-10-08
 */
public interface RoleMapper extends BaseMapper<Role> {

    List<MyNode> queryPowerByRole(String roleName);

    List<Role> queryRoleAndPower();

    List<MyNode> queryAllPower();

    int deletePowerByRoleId(int roleId);

    int insertPower(List<RolePower> list);
}
